package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type DictListReq struct {
	g.Meta `path:"/system/dict" method:"get" tags:"system" sm:"字典列表" can:"system.dict"`
}

type DictListRes struct {
	Rows []*model.DictItem `json:"rows" dc:"数据集合"`
}

type DictStoreReq struct {
	g.Meta `path:"/system/dict/store" method:"post" tags:"system" sm:"字典创建" can:"system.dict.store"`
	model.DictFormInput
}

type DictStoreRes struct{}

type DictUpdateReq struct {
	g.Meta `path:"/system/dict/update/{id}" method:"put" tags:"system" sm:"字典更新" can:"system.dict.update"`
	Id     uint64 `json:"id" in:"query" v:"required|min:1" dc:"字典id"`
	model.DictFormInput
}

type DictUpdateRes struct{}

type DictDestroyReq struct {
	g.Meta `path:"/system/dict/destroy" method:"delete" tags:"system" sm:"字典删除" can:"system.dict.destroy"`
	Ids    []uint64 `json:"ids" v:"required|array|max-length:200" dc:"字典id集合"`
}

type DictDestroyRes struct{}
